#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include "func-stack-backtrace.h"

void b() 
{
    func_backtrace();
}

void a() 
{
    b();
}

static void *th_1(void *para)
{
    int32_t i = 0;

    while(1)
    {       
        a();
        printf("--------------------------------------run %d-----------------------------------\n", i++);
        sleep(1);
    }
}

int main(int argc, char *argv[]) 
{
    pthread_t tid = 0;

    a();

    pthread_create(&tid, NULL, th_1, NULL);

    while(1)
    {
        sleep(1);
    }

    return 0;
}

